<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./iconfont/iconfont.css">
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        html,
        body {
            height: 100%;
            padding: 0 8px;
        }

        body {
            display: flex;
            flex-direction: column;
        }

        main {
            flex: 1;

        }
        main #app .item{
            display: flex;
            justify-content: space-around;
            margin-bottom: 10px;
            align-items: center;
        }

        main #app img{
            width: 80px;
            border-radius: 20px;
        }
        main #app .title{
            margin-top: 10px;
            margin-bottom: 10px;
            padding-left: 10px;
            font-weight: 800;
        }
        header {
            height: 60px;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            position: relative;
            font-size: 20px;
            font-weight: 800;
        }

        footer {
            height: 60px;
            display: flex;
            justify-content: space-around;
        }

        footer div {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-around;
        }

        #app {
            height: 320px;
        }
        /* main .app1{
            display: flex;
        } */
        main .box{
            display: flex;
            justify-content: space-between;
        }
        main .app1 .item{
            height: 50px;
            flex-direction: column;
            align-items: center;
        }
        main .app1 .title{
            width: 100%;
            font-weight: 800;
            margin-bottom: 10px;
        }
        main .app1 .item .price{
            width: 92px;
            height: 67px;
            background-color: #ffe8e5;
            text-align: center;
            line-height: 67px;
            border: 1px solid white;
            border-radius: 10px;
        }
        main .app1 .item .manjian{
            width: 92px;
            height: 36px;
            background-color: #ffe8e5;
            text-align: center;
            line-height: 36px;
            border: 1px solid white;
            border-radius: 10px;
            color:#fe696b;
        }
        main .right button {
            background-color: #ff673f;
            border: none;
            border-radius: 20px;
            width: 80px;
            height: 33px;
            color: white;
        }
        main .middle .price,main .middle .pea{
            color: #fe634e;
            font-size: 14px;
        }
        main .middle .name{
            font-weight: 800;
            font-size: 16px;
        }
        .app1 .item .price{
            font-size: 26px;
            color: #fe696b;
        }
        .app1 .item {
            font-size: 14px;
            
        }
        .app1 .item div:nth-of-type(3){
            margin-top: 10px;
        }
        footer div:nth-of-type(2){
            color: blue;
        }
    </style>
</head>

<body>
    <header><&emsp;饿了么</header>
    <main>
        <div id="app">
            <div class="title">热门单品</div>
            <div class="item" v-for="(item,index) in tasklist" v-bind:key="index">
                <div class="left">
                    <img v-bind:src="item.pic" alt="">
                </div>
                <div class="middle">
                    <div class="name">{{item.name}}</div>
                    <div class="price">{{item.price}}</div>
                    <div class="pea">{{item.pea}}</div>
                    <div style="color: #b9b9b9; font-size:12px;">适用门店></div>
                </div>
                <div class="right">
                    <button>立即兑</button>
                </div>
            </div>
        </div>
        <div class="app1">
            <div class="title">通用红包限量兑</div>
            <div class="box">
                <div class="item">
                    <div class="price">¥5</div>
                    <div class="manjian">满30可用</div>
                    <div>吃货联盟红包</div>
                </div>
                <div class="item">
                    <div class="price">¥5</div>
                    <div class="manjian">满30可用</div>
                    <div>吃货联盟红包</div>
                </div>
                <div class="item">
                    <div class="price">¥5</div>
                    <div class="manjian">满30可用</div>
                    <div>吃货联盟红包</div>
                </div>
            </div>
        </div>
    </main>
    <footer>
        <div>
            <span class="iconfont icon-shouye"></span>
            首页
        </div>
        <div>
            <span class="iconfont icon-weibiaoti-"></span>
            吃货卡
        </div>
        <div>
            <span class="iconfont icon-gouwu"></span>
            订单
        </div>
        <div>
            <span class="iconfont icon-wode"></span>
            我的
        </div>
    </footer>
    <script src="./vue-2.5.21.js"></script>
    <script>
        var v = new Vue({
            el: '#app',
            data: {
                tasklist: [
                    { pic: './image/OIP-C.jpg', name: '脐橙3斤 快递到家', price: '兑换后入手价8.9元', pea: 10 },
                    { pic: './image/OIP-C.jpg', name: '耙耙柑3斤 快递到家', price: '兑换后入手价9.9元', pea: 30 },
                    { pic: './image/OIP-C.jpg', name: '水果捞350g', price: '兑换后入手价6.9元', pea: 60 }
                ]
            }
        })
    </script>
</body>

</html>